package thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-09-27
 * Time: 13:13
 */
public class ThreadDemon34 {
    public static void main(String[] args) {
        ExecutorService service = Executors.newFixedThreadPool(4);
        service.submit(new Runnable(){
            @Override
            public void run() {
                System.out.println("执行线程池中第一个任务");
            }
        });

    }
}
